<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="canvas" width="1024" height="768" style="border: 1px solid #000;"></canvas>
  <script>
    let canvas = document.getElementById('canvas')
    let context = canvas.getContext('2d')

    context.moveTo(100, 100) 
    context.lineTo(700, 700)
    context.stroke()
  </script>
</body>
</html>